package com.cjr.ddp.service;

import com.cjr.ddp.entity.User;

import java.util.List;

/**
 * @author cjr
 * @date Created in 2020-03-05 20:53
 * @description
 * @modified By
 */
public interface UserService {
    //用户登录
    User selectUserByLoginInfo(User user);

    //新增用户
    int insertUser(User user);

    //根据用户ID删除用户
    int deleteUserByUserId(int id);

    //修改用户
    int updateUserByUserID(User user);

    //查询所有用户
    List<User> selectUserList();

    //根据用户名查询用户
    List<User> selectUserByUserName(User user);
}
